home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / Source / GENetReleaseƒ / GEDemo / Cannon.h < prev    next >
Text File  |  1994-03-07  |  1KB  |  66 lines

  1. /*
  2.     Cannon.h
  3.     
  4.     Cannon scene for GEDemo
  5.     
  6.     Copyright 1993 by Al Evans. All rights reserved.
  7.     
  8.     11/3/93
  9.     
  10. */
  11.  
  12. //Load precomiled headers if in MPW
  13. #ifdef applec
  14. #ifndef __cplusplus
  15. #ifndef PRELOAD
  16. #pragma load "::ToolKit.precompile"
  17. #define PRELOAD
  18. #endif
  19. #endif
  20. #endif
  21.  
  22. #include "GraphElements.h"
  23. #include "Sensors.h"
  24.  
  25. //Resource numbers of PICTs making up cannon scene
  26. #define rBallPic    600
  27. #define rCannonPic    601
  28. #define rSmokePic    602
  29. #define rFBtnPic    650
  30.  
  31. //Cannon position
  32. #define cannonLeft    390
  33. #define cannonTop    210
  34.  
  35. //Cannon scene planes
  36. #define cannonPlane    rCannonPic
  37. #define ballPlane    cannonPlane - 1
  38. #define smokePlane    cannonPlane + 1
  39. //Button is just in front of background
  40. #define btnPlane    4
  41.  
  42. //Cannon scene IDs
  43. #define cannonID    'CANN'
  44. #define ballID         'BALL'
  45. #define smokeID        'SMOK'
  46. #define fBtnID        'FBtn'
  47.  
  48. #ifdef __cplusplus
  49. extern "C" {
  50. #endif
  51.  
  52. Boolean LoadCannonScene(GEWorldPtr world);
  53.  
  54. //Cannonball autochange proc
  55. pascal void DoCannonBall(GEWorldPtr world, GrafElPtr ball);
  56.  
  57. //Cannonball collision proc
  58. pascal void DoBallHit(GEWorldPtr world, GrafElPtr ball, GEDirection dir, GrafElPtr objHit);
  59.  
  60. //Call to start cannon scene animation
  61. pascal void ShootCannon(GEWorldPtr world, short fireIt);
  62.  
  63. #ifdef __cplusplus
  64. }
  65. #endif
  66.